package com.woniuxy.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.UpdateProvider;

import com.woniuxy.pojo.Member;
import com.woniuxy.provider.MemberProvider;

public interface MemberMapper {
	
	@Select("select * from member where mname like #{message} or mnumber like #{message} or midcard like #{message} or mtel like #{message}")
	public List<Member> find(String message);

	@Select("selecte * from member")
	public List<Member> getAll();

	@UpdateProvider(type = MemberProvider.class, method = "updateMember")
	public int updateMember(Member member);

}
